package model.environmentConfig;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name = "protocol")
public class Protocol 
{
	
	public Protocol(){
		
	}
	
	public Protocol(String name){
		this.name = name;
	}
	
	String name;
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String setName)
	{
		name = setName;
	}

	@Override
	public boolean equals(Object p){
		if(!(p instanceof Protocol)){
			return(false);
		}
		
		Protocol pro=(Protocol)p;
		
		if(this.name.compareToIgnoreCase(pro.getName())!=0){
			return(false);
		}
		
		return(true);
	}

}
